package com.mikgonz.farkle.server;

import java.util.ArrayList;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Indexed;
import com.googlecode.objectify.annotation.Unindexed;

@Unindexed
public class User {

	@Id
	private Long id;
	@Indexed
	private String name;
	private String password;
	private String xtifyKey;
	private ArrayList<String> friendIds;

	public User() {
	}

	public User(String name, String password, String xtifyKey) {
		super();
		this.name = name;
		this.password = password;
		this.xtifyKey = xtifyKey;
	}

	public Long getId() {
		return id;
	}
	
	public String getIdAsString(){
		return Long.toString(id);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getXtifyKey() {
		return xtifyKey;
	}

	public void setXtifyKey(String xtifyKey) {
		this.xtifyKey = xtifyKey;
	}

	public ArrayList<String> getFriendIds() {
		return friendIds;
	}

	public void setFriendIds(ArrayList<String> friendIds) {
		this.friendIds = friendIds;
	}
}
